/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.bean;

import java.beans.Transient;
import java.util.Date;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * 设备与用户对应表
 * shEquipmentComm
 * @author KongXiangyu
 * @since 2015-09-07
 */
public class ShEquipmentUser extends BaseDomain {
	private static final long serialVersionUID = 1L;
	private Long equipmentInfoId;	//设备基础信息ID
	private Long platformUserId;	//平台用户ID
	private Long residenceId;		//小区ID
	private Long buildingId;		//楼栋ID
	private Long buildingUnitId;	//单元ID
	private Long doorId;			//门牌信息ID
	private String address;			//设备位置
	private Long commType;			//通信类型：1开门；2：关门；3：可视对讲；4：视频预览；5:视频历史
	private Long status;			//状态1:正常；2：冻结；
	private Date lastCommTime;		//最后通信时间
	private Date gmtCreate;			//创建时间
	private Date gmtModify;			//更新时间
	private String bingType;		//绑定类型：1：设备与用户关联绑定；2：设与小区绑定
	

	//非数据库字段
	private String  equipmentInfoName;	//设备基础信息名称
	private String  residenceName;		//小区名称
	private String buildingName;		//楼栋名称
	private String buildingUnitName;	//单元名称
	private String  doorNum;			//门牌号
	private String  platformUserName;	//平台用户名称
	private String  commTypeName;		//设备类型名称
	
	

	public ShEquipmentUser(){
		//默认无参构造方法
	}

	/**
	 * 获取 equipmentInfoId
	 * @return
	 */
	public Long getEquipmentInfoId(){
		return equipmentInfoId;
	}
	
	/**
	 * 设置 equipmentInfoId
	 * @param equipmentInfoId
	 */
	public void setEquipmentInfoId(Long equipmentInfoId){
		this.equipmentInfoId = equipmentInfoId;
	}

	/**
	 * 获取 platformUserId
	 * @return
	 */
	public Long getPlatformUserId(){
		return platformUserId;
	}
	
	/**
	 * 设置 platformUserId
	 * @param platformUserId
	 */
	public void setPlatformUserId(Long platformUserId){
		this.platformUserId = platformUserId;
	}

	/**
	 * 获取 residenceId
	 * @return
	 */
	public Long getResidenceId(){
		return residenceId;
	}
	
	/**
	 * 设置 residenceId
	 * @param residenceId
	 */
	public void setResidenceId(Long residenceId){
		this.residenceId = residenceId;
	}

	public Long getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(Long buildingId) {
		this.buildingId = buildingId;
	}

	public Long getBuildingUnitId() {
		return buildingUnitId;
	}

	public void setBuildingUnitId(Long buildingUnitId) {
		this.buildingUnitId = buildingUnitId;
	}
	
	/**
	 * 获取 doorId
	 * @return
	 */
	public Long getDoorId(){
		return doorId;
	}
	
	/**
	 * 设置 doorId
	 * @param doorId
	 */
	public void setDoorId(Long doorId){
		this.doorId = doorId;
	}

	/**
	 * 获取 address
	 * @return
	 */
	public String getAddress(){
		return address;
	}
	
	/**
	 * 设置 address
	 * @param address
	 */
	public void setAddress(String address){
		this.address = address;
	}



	/**
	 * 获取 commType
	 * @return
	 */
	public Long getCommType(){
		return commType;
	}
	
	/**
	 * 设置 commType
	 * @param commType
	 */
	public void setCommType(Long commType){
		this.commType = commType;
	}

	/**
	 * 获取 status
	 * @return
	 */
	public Long getStatus(){
		return status;
	}
	
	/**
	 * 设置 status
	 * @param status
	 */
	public void setStatus(Long status){
		this.status = status;
	}

	/**
	 * 获取 lastCommTime
	 * @return
	 */
	public Date getLastCommTime(){
		return lastCommTime;
	}
	
	/**
	 * 设置 lastCommTime
	 * @param lastCommTime
	 */
	public void setLastCommTime(Date lastCommTime){
		this.lastCommTime = lastCommTime;
	}

	/**
	 * 获取 gmtCreate
	 * @return
	 */
	public Date getGmtCreate(){
		return gmtCreate;
	}
	
	/**
	 * 设置 gmtCreate
	 * @param gmtCreate
	 */
	public void setGmtCreate(Date gmtCreate){
		this.gmtCreate = gmtCreate;
	}

	/**
	 * 获取 gmtModify
	 * @return
	 */
	public Date getGmtModify(){
		return gmtModify;
	}
	
	/**
	 * 设置 gmtModify
	 * @param gmtModify
	 */
	public void setGmtModify(Date gmtModify){
		this.gmtModify = gmtModify;
	}
	
	
	public String getBingType() {
		return bingType;
	}

	public void setBingType(String bingType) {
		this.bingType = bingType;
	}
	
	
	@Transient
	public String getEquipmentInfoName() {
		return equipmentInfoName;
	}

	public void setEquipmentInfoName(String equipmentInfoName) {
		this.equipmentInfoName = equipmentInfoName;
	}

	@Transient
	public String getResidenceName() {
		return residenceName;
	}

	public void setResidenceName(String residenceName) {
		this.residenceName = residenceName;
	}

	@Transient
	public String getDoorNum() {
		return doorNum;
	}

	public void setDoorNum(String doorNum) {
		this.doorNum = doorNum;
	}
	
	@Transient
	public String getCommTypeName() {
		return commTypeName;
	}

	public void setCommTypeName(String commTypeName) {
		this.commTypeName = commTypeName;
	}
	
	
	@Transient
	public String getPlatformUserName() {
		return platformUserName;
	}

	public void setPlatformUserName(String platformUserName) {
		this.platformUserName = platformUserName;
	}

	@Transient
	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	@Transient
	public String getBuildingUnitName() {
		return buildingUnitName;
	}

	public void setBuildingUnitName(String buildingUnitName) {
		this.buildingUnitName = buildingUnitName;
	}

	
}